@extends('admin.superadmin.layout.layout')
@section('content')
    <div class="row">
        <div class="col-lg-12">
            <h1 class="page-header">作者列表</h1>
        </div>        
    </div>
	
	<div class="col-lg-12">
        <div class="panel panel-default">   
            <div class="panel-body">
                <div class="row">
                    <div class="col-lg-12">

                    	
						
						@if (count($errors) > 0)
    						<div class="alert alert-danger">
       						<ul>
			            @foreach ($errors->all() as $error)
			                <li>{{ $error }}</li>
					    @endforeach
						    </ul>
						    </div>
						@endif	

                     
                        <div class="panel-body">
                            <div class="table-responsive">
                                <table class="table table-striped table-bordered table-hover ol-lg-offset-3">
                                    <thead>
                                   
                                        <tr>
                                            <th style="text-align:center">id</th>
                                            <th style="text-align:center">作者</th>
                                           
                                            <th style="text-align:center">操作</th>
                                        </tr>
                                    
                                    </thead>
                                    <tbody>
                                     @foreach($fauthor as $k=>$v)
                                        <tr>
                                            <td style="text-align:center">{{$v->id}}</td>
                                            <td style="text-align:center">{{$v->name}}</td>
                                           
                                            <td style="text-align:center">
                                            <a href="{{url('/admin/superadmin/author/delete',['id'=>$v->id])}}" class="fa fa-trash-o">删除</a>
					                            &nbsp;&nbsp;|&nbsp;&nbsp;
											<a href="{{url('/admin/superadmin/author/edit',['id'=>$v->id])}}" class="fa fa-wrench">分配编辑</a>			
                                            </td>
                                        </tr>

                                    @endforeach   
                                    
                                    </tbody>
                                </table>
                            </div>
                            <!-- /.table-responsive -->
                        </div>
                        <!-- /.panel-body -->
                    </div>
                    </div>
                    <!-- /.col-lg-6 (nested) -->
                </div>
                <!-- /.row (nested) -->
            </div>

            <!-- /.panel-body -->
        </div>
        <!-- /.panel -->
    </div> 

@endsection                    
